package com.glc.hms.common.exception;

/**
 * @author Santa
 * @since 2019/11/14
 */
public class BusinessException extends RuntimeException {

    private String errorMessage;

    public BusinessException(String errorMessage) {
        super(errorMessage);
        this.errorMessage = errorMessage;
    }

    public BusinessException(AbstractBaseExceptionEnum exception) {
        super(exception.getMessage());
        this.errorMessage = exception.getMessage();
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}























